package com.share.hope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "vocabulary")
@Schema(description = "愛心單詞本基本信息")
public class Vocabulary extends BaseEntity{

    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "主键")
    private Long id;

    @TableField(value = "word")
    @Schema(description = "單詞")
    private String word;

    @TableField(value = "definition")
    @Schema(description = "解釋")
    private String definition;

    @TableField(value = " part_of_speech")
    @Schema(description = "词性")
    private String partOfSpeech;
}
